package git.jas0nch.boottest.service.Impl;

import git.jas0nch.boottest.dao.Impl.EmployeeDAOImpl;
import git.jas0nch.boottest.pojo.Employee;
import git.jas0nch.boottest.service.IEmployeeService;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collection;

/**
 * projectName : boottest
 * className: EmployeeServiceImpl
 * description: TODO 类描述
 *
 * @author : git.jas0nch
 * date: 2022-02-17
 */

@Service
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class EmployeeServiceImpl implements IEmployeeService {

    private final EmployeeDAOImpl employeeDao;

    @Override
    public Collection<Employee> getEmployees() {

        return employeeDao.getEmployees();
    }
}
